package com.juc.juc_project.threadbase.callable;

import java.util.concurrent.Callable;

public class Demo implements Callable<Integer>{

	@Override
	public Integer call() throws Exception {
		int sum=0;
		for (int i =1; i < 100; i++) {
			if(i%2!=0){
				sum=sum+i;
			}
			System.out.println(sum);
		}
		return sum;
	}
}
